//方式二的弹窗表单
document.write(`<button class="close-button" onclick="closeDialog(2)">&times;</button>
			<h1 class="myDialog-title">请输入Pocket设备ID</h1>
			<h2 class="myDialog-annotation">请确保Pocket已接入有线网并联网后，再填写设备ID进行验证</h2>
			<form class="myDialog-input-group">

				<label class="lab">设备id</label>
				<div class="mui-input-row">
					<input type="text" placeholder="设备id">
					<span class="warning">此设备未接入网络或设备ID错误</span>
				</div>
				<div class="mui-button-row myDialog-btn">
					<button type="button" class="mui-btn mui-btn-grey" onclick="closeDialog(2)">取消</button>
					<button type="button" id="DeviceIdBtn" class="mui-btn mui-btn-primary" onclick="closeDialog(2,true)">确认</button>
				</div>
			</form>`)
			// 获取对话框元素2
			let Method2 = document.getElementById('myDialog1');
			//方式二的确认校验
			function Method2Submit(){
				document.querySelector('#DeviceIdBtn').innerHTML='验证中···'
				setTimeout(()=>{
					document.querySelector('#DeviceIdBtn').innerHTML='确定'
					document.querySelector('[placeholder="设备id"]~.warning').style.display='block'
				},3000)
				// Method2.close();
			}
			//方式二打开弹窗
			function openMethod2Dialog(){
				Method2.showModal();
				//清除校验
				document.querySelector('[placeholder="设备id"]~.warning').style.display='none'
			}